﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AteCapybara
{
    public class BoardType
    {
        public string dfs;
        public List<Dictionary<string, string>> boardType { get; set; }

        public List<Dictionary<string, string>> barcode { get; set; }

        public List<Dictionary<string, string>> barcode_simulation { get; set; }

        public Dictionary<string,string> Get_byBoardType(string boardTypeName)
        {
            foreach (var kvp in boardType) 
            {
                if (kvp["Name"] == boardTypeName)
                {
                    return kvp;
                }
            }
            return null;
        }
    }
}
